Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
STEP 19 부하 테스트 스크립트 작성 및 진행
STEP 20 부하 테스트로 인한 문제 개선 및 보고서 작성
🔨 작업 내역
[ STEP 19: 부하 테스트 스크립트 작성 및 진행 ]
부하 테스트 계획서 (def970b)
docs/13_LOAD_TEST_PLAN.md모니터링 인프라 구축 (7fc6d6a, a25e6a5, d1e550c, a58a666)
K6 부하 테스트 스크립트 (958c902, d06a224)
realistic-coupon-spike.jsrealistic-order-load.jsrealistic-popular-products.jsrealistic-point-stress.jsGrafana 대시보드 확장 (7479e24)
[ STEP 20: 부하 테스트로 인한 문제 개선 및 보고서 작성 ]
발견된 문제 및 개선 (d50e480, 343e43a)
/api/products/top수정/api/points/users/{userId}/charge서버 설정 튜닝 (
application.yml)인덱스 최적화 (343e43a)
-- order_payments 복합 인덱스 (스케줄러 쿼리 최적화)
CREATE INDEX idx_status_paid_at ON order_payments (payment_status, paid_at);
-- failed_events 복합 인덱스 (DLT 스케줄러 최적화)
CREATE INDEX idx_status_next_retry ON failed_events (status, next_retry_at);
성능 분석 보고서 (9a6b9f1)
장애 대응 가이드 (9a6b9f1)
📊 테스트 결과 비교
🏗️ 아키텍처
모니터링 스택
┌─────────────────────────────────────────────────────────────┐
│ K6 (Load Generator) │
│ │ │
│ ▼ │
│ Spring Boot App ───────────────────────────────────────── │
│ │ │
│ ├── MySQL 8.0 ──────┐ │
│ ├── Redis 7.2 ──────┼── Prometheus ── Grafana │
│ └── Kafka 7.4 ──────┘ │
│ │
│ └── Pinpoint Agent ── Pinpoint APM │
│ └── Logstash ── Elasticsearch ── Kibana │
└─────────────────────────────────────────────────────────────┘
부하 테스트 패턴
Background Traffic (상품 조회) ──────────────────────────────
↑
│ 스파이크/램프업
Target API Traffic ──────────────┴──────────────────────────
시작 피크 종료
🤔 리뷰 포인트
간단 회고 (3줄 이내)